﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="RecentNews.aspx.vb" Inherits="News_RecentNews" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="../App_Themes/myTheme/myTheme.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="divMain">
        <asp:GridView ID="newsRes" AutoGenerateColumns="False" BorderWidth="0" AllowPaging="False"
            PagerStyle-Mode="NextPrev" 
            HorizontalAlign="Center" HeaderStyle-CssClass="datagridHeader"
            runat="server" Width="98%" GridLines="None">
            <HeaderStyle HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="Recent News" ItemStyle-Width="100%">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#Eval("Url")%>'
                            ToolTip='<%#Eval("Summary")%>' Text='<%#Eval("title")%>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="datagridHeader" />
        </asp:GridView>
       </div>
    </form>
    <script language="javascript" type="text/javascript">
        PopulateParent = function(){
        try{
            window.parent.document.getElementById('<%=Request("Container") %>').innerHTML = document.getElementById('divMain').innerHTML;
            }catch(e){}
        };
        PopulateParent();
        </script>
</body>
</html>
